tests: [scan-build] Initialize a variable
authorColin Walters <walters@verbum.org>
Fri, 18 Oct 2019 14:57:47 +0000 (14:57 +0000)
committerColin Walters <walters@verbum.org>
Fri, 18 Oct 2019 15:07:39 +0000 (15:07 +0000)
False positive.

tests/libostreetest.c

index 9a2fae09f0a43a4439cb377f68b3a3ff761d157b..1efee40e7842502076be97bf29c1d0f7d5dbf374 100644 (file)
@@ -145,7 +145,7 @@ ot_test_setup_sysroot (GCancellable *cancellable,
 
   g_autoptr(GString) buf = g_string_new ("mutable-deployments");
 
-  gboolean can_relabel;
+  gboolean can_relabel = FALSE;
   if (!ot_check_relabeling (&can_relabel, error))
     return FALSE;
   if (!can_relabel)